import request from '@/utils/request'
//历史记录题目记录
export function getRecordId() {
    return request({
        url: '/record',
        method: 'get'
    })
}
//加入历史记录
export function createRecord(problemUid) {
    return request({
        url: `/record/${problemUid}`,
        method: 'post',
    })
}
//更新历史记录
export function doneRecord(problemUid, spendTime, startTime,status) {
    const data = {
      problemUid,
      spendTime,
      startTime,
      status,
    }
    return request({
      url: '/record',
      method: 'post',
      data: data
    })
  }